import axios from "../index.js";
// 月度培训计划
// 列表
export const trainingMonthlyListPage = (data) => {
  return axios.request({
    url: "/plan_training/training-monthly/listPage",
    method: "post",
    data: data
  });
};
// 新增
export const trainingMonthlyInsert = (data) => {
  return axios.request({
    url: "/plan_training/training-monthly/insert",
    method: "post",
    data: data
  });
};
// 详情
export const trainingMonthlyDetail = (data) => {
  return axios.request({
    url: "/plan_training/training-monthly/detail",
    method: "post",
    data: data
  });
};
// 删除
export const trainingMonthlyDel = (data) => {
  return axios.request({
    url: "/plan_training/training-monthly/del",
    method: "post",
    data: data
  });
};
// // 导出月度表
// export const trainingMonthlyExportMonthly = (data) => {
//   return axios.request({
//     url: "/plan_training/training-monthly/exportMonthly",
//     method: "get",
//     data: data
//   });
// };
// 导出
export const trainingMonthlyExportMonthly = (data) => {
  return axios.request({
    url: "/plan_training/training-monthly/exportMonthly",
    method: "get",
    data: data,
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
    responseType: "blob"
  });
};
// 提交
export const trainingMonthlyUpdate = (data) => {
  return axios.request({
    url: "/plan_training/training-monthly/update",
    method: "post",
    data: data
  });
};
// 审批
export const trainingMonthlyApprove = (data) => {
  return axios.request({
    url: "/plan_training/training-monthly/approve",
    method: "post",
    data: data
  });
};
// 审批2
export const trainingRecordAdd = (data) => {
  return axios.request({
    url: "/plan_training/train-drill-record/add",
    method: "post",
    data: data
  });
};
// 下发培训
export const trainingNoticeInsert = (data) => {
  return axios.request({
    url: "/plan_training/training-notice/insert",
    method: "post",
    data: data
  });
};
// 下发培训审批
export const trainingNoticeApprove = (data) => {
  return axios.request({
    url: "/plan_training/training-notice/approve",
    method: "post",
    data: data
  });
};
// 下发培训详情
export const trainingNoticeDetail = (data) => {
  return axios.request({
    url: "/plan_training/training-notice/detail",
    method: "post",
    data: data
  });
};
// 人员选择接口
export const trainingNoticegetMembers = (data) => {
  return axios.request({
    url: "/system/account/getAccountOrgList",
    method: "get",
    data: data
  });
};
// 人员上报提交
export const trainingDrillStaffInsertOrUpdate = (data) => {
  return axios.request({
    url: "/plan_training/training-drill-staff/insertOrUpdate",
    method: "post",
    data: data
  });
};
// 人员上报审批
export const trainingDrillStaffUpdate = (data) => {
  return axios.request({
    url: "/plan_training/training-drill-staff/update",
    method: "post",
    data: data
  });
};
// 人员上报选择人员之后回选
export const trainingDrillStaffGetMembersByRefId = (data) => {
  return axios.request({
    url: "/plan_training/training-drill-staff/getMembersByRefId",
    method: "post",
    data: data
  });
};
// 选择人员下拉接口
export const getListUser = (data) => {
  return axios.request({
    url: "brac/account/listUser",
    method: "get",
    data: data
  });
};
// 根据组织机构选人
export const getAccountByOrg = (data) => {
  return axios.request({
    url: "/feign/account/getAccountByOrg",
    method: "post",
    data: data
  });
};
// 根据组织机构选人
export const queryPersonList = (data) => {
  return axios.request({
    url: "/system/account/queryPersonList",
    method: "post",
    data: data
  });
};
// 人员选择接口
export const getMembers = (data) => {
  return axios.request({
    // url: "/resource/baseResourceMember/listPage",
    url: "/plan_training/training-drill-staff/getMembers",
    method: "post",
    data: data
  });
};
// 人员选择接口演练
export const getMemberss = (data) => {
  return axios.request({
    url: "/resource/baseResourceMember/listPage",
    // url: "/plan_training/training-drill-staff/getMembers",
    method: "post",
    data: data
  });
};
// 实际参培人数
export const getActuMembers = (data) => {
  return axios.request({
    url: "/plan_training/training-drill-staff/getActuMembers",
    method: "get",
    data: data
  });
};
// 单位
export const getOrgDepartmentList = (data) => {
  return axios.request({
    url: "/system/organization/getOrgDepartmentList",
    method: "get",
    data: data
  });
};
